import { request } from '@umijs/max';

export async function loginAPI(body: any) {
  return request('http://192.168.15.6:3006/auth/admin_login', {
    method: 'POST',
    data: body,
  });
}

//获取用户信息
export async function loadCurrentUserAPI() {
  return request('/admin/managers/info', {});
}
